package cn.wolfcode.wolf2w.repository;


import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 热门区域持久层接口
 */
@Repository
public interface RegionRepository extends MongoRepository<Region, String>{
    List<Region> findByIshotOrderBySequence(Integer hot);

    /**
     * 根据名称查询区域对象
     * @param name
     * @return
     */
    List<Region> findByName(String name);

}
